package User;

import Opertion.*;

import java.util.Scanner;

public class MananeUser extends User{
    public MananeUser(String name) {
        super(name);
        ioPertions = new IOPertion[] {
                new ExitBook(),
                new FindBook(),
                new PrintBook(),
                new AddBook(),
                new DelBook()
        };
    }

    @Override
    int meun() {
        System.out.println("欢迎 "+getName()+" 来到管理员系统");
        System.out.println("*******************************");
        System.out.println("\t\t1. 查阅图书");
        System.out.println("\t\t2. 展开图书");
        System.out.println("\t\t3. 添加图书");
        System.out.println("\t\t4. 删除图书");
        System.out.println("\t\t0. 退出系统");
        System.out.println("*******************************");
        System.out.println("请输入你的操作：");
        Scanner scanner = new Scanner(System.in);
        return scanner.nextInt();
    }
}
